<%--
  @author Supun Nimesh Karunathilaka
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<script src="${pageContext.request.contextPath}/js/print.js" type="text/javascript"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/printDetailForm.css" media="print"/>

<script type="text/javascript">
    $(document).ready(function() {
        // $('.print-btn').hide();
    });


</script>
<div id="org-report-module-home-title" class="module-home-title">
    <s:a href="reportModule.do">
        <span><img src="${pageContext.request.contextPath}/images/print.png" alt="Print">
            <s:label value="%{getText('reports.label')}"/></span>
    </s:a>
    <span class="module-title-breaker"> > </span>
    <s:a href="organizationalReports.do">
        <span><img src="${pageContext.request.contextPath}/images/list.png" alt="Organizational Reports">
            <s:label value="%{getText('organizational_reports_module.label')}"/></span>
    </s:a>
</div>
<div id="un-registered-organization-report-div">
    <h2><s:label value="%{getText('un_registered_organization_report.label')}"/></h2>
    <table>
        <tr>
            <td colspan="2" class="left-align">
                <div class="action-msg"><s:actionmessage/></div>
                <div class="action-err"><s:actionerror/></div>
            </td>
        </tr>
    </table>
    <div id="printbtn" class="form-button-div right-align">
        <%--<input type="button" value="Print" id="print"  class="print-btn">--%>
        <input class="print-btn" type="button" value="Print" onclick="printUnregisteredOrganizationReportPage();">

    </div>
    <table class="width-100 margin-10-auto table land-table">
        <thead>
        <tr class="left-align table-header">
            <th class=""><s:label value="%{getText('id.label')}"/></th>
            <th class=""><s:label value="%{getText('organization_name.label')}"/></th>
            <th class=""><s:label value="%{getText('due_date.label')}"/></th>
            <th class=""><s:label value="%{getText('name_of_head_of_go.label')}"/></th>
            <th class=""><s:label value="%{getText('address_of_head_of_go.label')}"/></th>
        </tr>
        </thead>
        <tbody>
        <s:iterator status="status1" value="organizationsList">
            <tr class="<s:if test="#status1.odd == true">able-row-odd</s:if><s:else>table-row-even</s:else>t">
                <td class="left-align"><s:property value="id"/></td>
                <td class="left-align"><s:property value="organizationNameEn"/></td>
                <td class="left-align"><s:property value="dueDate"/></td>
                <td class="left-align"><s:property value="contactPerson.name"/></td>
                <td class="left-align"><s:property value="contactPerson.contacts.address"/></td>
            </tr>
        </s:iterator>
        </tbody>
    </table>
</div>

<s:hidden id="print" value="%{getText('print.label')}"/>


